/*
 * @(#)Affair.java 创建于 2015-11-28 13:00:41
 *
 * 版权：版权所有 Bsoft 保留所有权力。
 */
package hcn.mch.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.BeanUtils;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 孕产妇预建档-准爸爸基本信息
 */
@Entity
@Table(name = "mc_prefiling_fatherinfo")
@SuppressWarnings("Serial")
public class McPrefilingFatherinfoVo implements Serializable {

    private String prefilingFatherId;//主键id

    private String prefilingId;//预建档主表id
    private String husbandName;//姓名
    private String husbandNationality;//国籍代码
    private String husbandEthnic;//民族
    private String husbandIdcardType;//证件类别代码
    private String husbandIdCard;//证件号码
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh_CN", timezone = "GMT+8")
    private Date husbandBirthDate;//出生日期
    private String husbandAge;//年龄
    private String husbandPhone;//电话号码
    private String husbandOccupationCategory;//职业类别代码
    private String husbandWorkUnit;//工作单位名称
    private String husbandHealth;//健康状况:1 良；2 疾病
    private String husbandHobby;//嗜好:1 烟；2 酒；3 无

    private String husbandPermanentProvince;//户籍地址-省（自治区、直辖市）
    @Transient
    private String husbandPermanentProvinceText;//户籍地址-省（自治区、直辖市）
    private String husbandPermanentCity;//户籍地址-市（地区、州）
    @Transient
    private String husbandPermanentCityText;//户籍地址-市（地区、州）
    private String husbandPermanentCounty;//户籍地址-县（区）
    @Transient
    private String husbandPermanentCountyText;//户籍地址-县（区）
    private String husbandPermanentTown;//户籍地址-乡（镇、街道办事处
    @Transient
    private String husbandPermanentTownText;//户籍地址-乡（镇、街道办事处
    private String husbandPermanentVillage;//户籍地址-村（街、路、弄等）
    @Transient
    private String husbandPermanentVillageText;//户籍地址-村（街、路、弄等）
    private String husbandPermanentHouseNumber;//户籍地址-门牌号码

    private String husbandCurrentProvince;//现住地址-省（自治区、直辖市）
    @Transient
    private String husbandCurrentProvinceText;//现住地址-省（自治区、直辖市）
    private String husbandCurrentCity;//现住地址-市（地区、州）
    @Transient
    private String husbandCurrentCityText;//现住地址-市（地区、州）
    private String husbandCurrentCounty;//现住地址-县（区）
    @Transient
    private String husbandCurrentCountyText;//现住地址-县（区）
    private String husbandCurrentTown;//现住地址-乡（镇、街道办事处
    @Transient
    private String husbandCurrentTownText;//现住地址-乡（镇、街道办事处
    private String husbandCurrentVillage;//现住地址-村（街、路、弄等）
    @Transient
    private String husbandCurrentVillageText;//现住地址-村（街、路、弄等）
    private String husbandCurrentHouseNumber;//现住地址-门牌号码

    private String husbandCurrentAddressJson;//丈夫现住地址
    private String husbandPermanentAddressJson;//丈夫户籍地址

    @Id
    @Column(name = "prefiling_father_id")
    public String getPrefilingFatherId() {
        return prefilingFatherId;
    }

    public void setPrefilingFatherId(String prefilingFatherId) {
        this.prefilingFatherId = prefilingFatherId;
    }
    @Basic
    @Column(name = "prefiling_id")
    public String getPrefilingId() {
        return prefilingId;
    }

    public void setPrefilingId(String prefilingId) {
        this.prefilingId = prefilingId;
    }
    @Basic
    @Column(name = "husband_name")
    public String getHusbandName() {
        return husbandName;
    }

    public void setHusbandName(String husbandName) {
        this.husbandName = husbandName;
    }
    @Basic
    @Column(name = "husband_nationality")
    public String getHusbandNationality() {
        return husbandNationality;
    }

    public void setHusbandNationality(String husbandNationality) {
        this.husbandNationality = husbandNationality;
    }
    @Basic
    @Column(name = "husband_ethnic")
    public String getHusbandEthnic() {
        return husbandEthnic;
    }

    public void setHusbandEthnic(String husbandEthnic) {
        this.husbandEthnic = husbandEthnic;
    }
    @Basic
    @Column(name = "husband_idcard_code")
    public String getHusbandIdcardType() {
        return husbandIdcardType;
    }

    public void setHusbandIdcardType(String husbandIdcardType) {
        this.husbandIdcardType = husbandIdcardType;
    }
    @Basic
    @Column(name = "husband_id_card")
    public String getHusbandIdCard() {
        return husbandIdCard;
    }

    public void setHusbandIdCard(String husbandIdCard) {
        this.husbandIdCard = husbandIdCard;
    }
    @Basic
    @Column(name = "husband_birth_date")
    public Date getHusbandBirthDate() {
        return husbandBirthDate;
    }

    public void setHusbandBirthDate(Date husbandBirthDate) {
        this.husbandBirthDate = husbandBirthDate;
    }
    @Basic
    @Column(name = "husband_age")
    public String getHusbandAge() {
        return husbandAge;
    }

    public void setHusbandAge(String husbandAge) {
        this.husbandAge = husbandAge;
    }
    @Basic
    @Column(name = "husband_phone")
    public String getHusbandPhone() {
        return husbandPhone;
    }

    public void setHusbandPhone(String husbandPhone) {
        this.husbandPhone = husbandPhone;
    }
    @Basic
    @Column(name = "husband_occupation_category")
    public String getHusbandOccupationCategory() {
        return husbandOccupationCategory;
    }

    public void setHusbandOccupationCategory(String husbandOccupationCategory) {
        this.husbandOccupationCategory = husbandOccupationCategory;
    }
    @Basic
    @Column(name = "husband_work_unit")
    public String getHusbandWorkUnit() {
        return husbandWorkUnit;
    }

    public void setHusbandWorkUnit(String husbandWorkUnit) {
        this.husbandWorkUnit = husbandWorkUnit;
    }
    @Basic
    @Column(name = "husband_health")
    public String getHusbandHealth() {
        return husbandHealth;
    }

    public void setHusbandHealth(String husbandHealth) {
        this.husbandHealth = husbandHealth;
    }
    @Basic
    @Column(name = "husband_hobby")
    public String getHusbandHobby() {
        return husbandHobby;
    }

    public void setHusbandHobby(String husbandHobby) {
        this.husbandHobby = husbandHobby;
    }
    @Basic
    @Column(name = "husband_current_province")
    public String getHusbandPermanentProvince() {
        return husbandPermanentProvince;
    }

    public void setHusbandPermanentProvince(String husbandPermanentProvince) {
        this.husbandPermanentProvince = husbandPermanentProvince;
    }
    @Basic
    @Column(name = "husband_current_city")
    public String getHusbandPermanentCity() {
        return husbandPermanentCity;
    }

    public void setHusbandPermanentCity(String husbandPermanentCity) {
        this.husbandPermanentCity = husbandPermanentCity;
    }
    @Basic
    @Column(name = "husband_current_county")
    public String getHusbandPermanentCounty() {
        return husbandPermanentCounty;
    }

    public void setHusbandPermanentCounty(String husbandPermanentCounty) {
        this.husbandPermanentCounty = husbandPermanentCounty;
    }
    @Basic
    @Column(name = "husband_current_town")
    public String getHusbandPermanentTown() {
        return husbandPermanentTown;
    }

    public void setHusbandPermanentTown(String husbandPermanentTown) {
        this.husbandPermanentTown = husbandPermanentTown;
    }
    @Basic
    @Column(name = "husband_current_village")
    public String getHusbandPermanentVillage() {
        return husbandPermanentVillage;
    }

    public void setHusbandPermanentVillage(String husbandPermanentVillage) {
        this.husbandPermanentVillage = husbandPermanentVillage;
    }
    @Basic
    @Column(name = "husband_current_house_number")
    public String getHusbandPermanentHouseNumber() {
        return husbandPermanentHouseNumber;
    }

    public void setHusbandPermanentHouseNumber(String husbandPermanentHouseNumber) {
        this.husbandPermanentHouseNumber = husbandPermanentHouseNumber;
    }
    @Basic
    @Column(name = "husband_permanent_province")
    public String getHusbandCurrentProvince() {
        return husbandCurrentProvince;
    }

    public void setHusbandCurrentProvince(String husbandCurrentProvince) {
        this.husbandCurrentProvince = husbandCurrentProvince;
    }
    @Basic
    @Column(name = "husband_permanent_city")
    public String getHusbandCurrentCity() {
        return husbandCurrentCity;
    }

    public void setHusbandCurrentCity(String husbandCurrentCity) {
        this.husbandCurrentCity = husbandCurrentCity;
    }
    @Basic
    @Column(name = "husband_permanent_county")
    public String getHusbandCurrentCounty() {
        return husbandCurrentCounty;
    }

    public void setHusbandCurrentCounty(String husbandCurrentCounty) {
        this.husbandCurrentCounty = husbandCurrentCounty;
    }
    @Basic
    @Column(name = "husband_permanent_town")
    public String getHusbandCurrentTown() {
        return husbandCurrentTown;
    }

    public void setHusbandCurrentTown(String husbandCurrentTown) {
        this.husbandCurrentTown = husbandCurrentTown;
    }
    @Basic
    @Column(name = "husband_permanent_village")
    public String getHusbandCurrentVillage() {
        return husbandCurrentVillage;
    }

    public void setHusbandCurrentVillage(String husbandCurrentVillage) {
        this.husbandCurrentVillage = husbandCurrentVillage;
    }
    @Basic
    @Column(name = "husband_permanent_house_number")
    public String getHusbandCurrentHouseNumber() {
        return husbandCurrentHouseNumber;
    }

    public void setHusbandCurrentHouseNumber(String husbandCurrentHouseNumber) {
        this.husbandCurrentHouseNumber = husbandCurrentHouseNumber;
    }

    public String getHusbandPermanentProvinceText() {
        return husbandPermanentProvinceText;
    }

    public void setHusbandPermanentProvinceText(String husbandPermanentProvinceText) {
        this.husbandPermanentProvinceText = husbandPermanentProvinceText;
    }

    public String getHusbandPermanentCityText() {
        return husbandPermanentCityText;
    }

    public void setHusbandPermanentCityText(String husbandPermanentCityText) {
        this.husbandPermanentCityText = husbandPermanentCityText;
    }

    public String getHusbandPermanentCountyText() {
        return husbandPermanentCountyText;
    }

    public void setHusbandPermanentCountyText(String husbandPermanentCountyText) {
        this.husbandPermanentCountyText = husbandPermanentCountyText;
    }

    public String getHusbandPermanentTownText() {
        return husbandPermanentTownText;
    }

    public void setHusbandPermanentTownText(String husbandPermanentTownText) {
        this.husbandPermanentTownText = husbandPermanentTownText;
    }

    public String getHusbandPermanentVillageText() {
        return husbandPermanentVillageText;
    }

    public void setHusbandPermanentVillageText(String husbandPermanentVillageText) {
        this.husbandPermanentVillageText = husbandPermanentVillageText;
    }

    public String getHusbandCurrentProvinceText() {
        return husbandCurrentProvinceText;
    }

    public void setHusbandCurrentProvinceText(String husbandCurrentProvinceText) {
        this.husbandCurrentProvinceText = husbandCurrentProvinceText;
    }

    public String getHusbandCurrentCityText() {
        return husbandCurrentCityText;
    }

    public void setHusbandCurrentCityText(String husbandCurrentCityText) {
        this.husbandCurrentCityText = husbandCurrentCityText;
    }

    public String getHusbandCurrentCountyText() {
        return husbandCurrentCountyText;
    }

    public void setHusbandCurrentCountyText(String husbandCurrentCountyText) {
        this.husbandCurrentCountyText = husbandCurrentCountyText;
    }

    public String getHusbandCurrentTownText() {
        return husbandCurrentTownText;
    }

    public void setHusbandCurrentTownText(String husbandCurrentTownText) {
        this.husbandCurrentTownText = husbandCurrentTownText;
    }

    public String getHusbandCurrentVillageText() {
        return husbandCurrentVillageText;
    }

    public void setHusbandCurrentVillageText(String husbandCurrentVillageText) {
        this.husbandCurrentVillageText = husbandCurrentVillageText;
    }

    @Basic
    @Column(name = "husband_current_address_json")
    public String getHusbandCurrentAddressJson() {
        return husbandCurrentAddressJson;
    }

    public void setHusbandCurrentAddressJson(String husbandCurrentAddressJson) {
        this.husbandCurrentAddressJson = husbandCurrentAddressJson;
        BeanUtils.copy(AddressVo.jsonToMap(husbandCurrentAddressJson,"husbandCurrent"),this);
    }

    @Basic
    @Column(name = "husband_permanent_address_json")
    public String getHusbandPermanentAddressJson() {
        return husbandPermanentAddressJson;
    }

    public void setHusbandPermanentAddressJson(String husbandPermanentAddressJson) {
        this.husbandPermanentAddressJson = husbandPermanentAddressJson;
        BeanUtils.copy(AddressVo.jsonToMap(husbandPermanentAddressJson,"husbandPermanent"),this);
    }
}
